﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BusinessLayer;

namespace PresentationLayer
{
    public partial class EmiteFactura : Form
    {
        public EmiteFactura()
        {
            InitializeComponent();
        }

        private void Emitir_Click(object sender, EventArgs e)
        {
            
            this.textObra.SelectAll();
            this.textOficina.SelectAll();
            if (FacturaActions.EmitirFactura(this.textObra.SelectedText, this.textOficina.SelectedText))
                this.Close();

        }
    }
}
